﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CE3 RID: 3299
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PickRogueAvatarScRsp : IMessage<PickRogueAvatarScRsp>, IMessage, IEquatable<PickRogueAvatarScRsp>, IDeepCloneable<PickRogueAvatarScRsp>, IBufferMessage
	{
		// Token: 0x1700298A RID: 10634
		// (get) Token: 0x0600936B RID: 37739 RVA: 0x00187995 File Offset: 0x00185B95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PickRogueAvatarScRsp> Parser
		{
			get
			{
				return PickRogueAvatarScRsp._parser;
			}
		}

		// Token: 0x1700298B RID: 10635
		// (get) Token: 0x0600936C RID: 37740 RVA: 0x0018799C File Offset: 0x00185B9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PickRogueAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700298C RID: 10636
		// (get) Token: 0x0600936D RID: 37741 RVA: 0x001879AE File Offset: 0x00185BAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PickRogueAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x0600936E RID: 37742 RVA: 0x001879B5 File Offset: 0x00185BB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PickRogueAvatarScRsp()
		{
		}

		// Token: 0x0600936F RID: 37743 RVA: 0x001879D4 File Offset: 0x00185BD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PickRogueAvatarScRsp(PickRogueAvatarScRsp other) : this()
		{
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.retcode_ = other.retcode_;
			this.trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009370 RID: 37744 RVA: 0x00187A26 File Offset: 0x00185C26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PickRogueAvatarScRsp Clone()
		{
			return new PickRogueAvatarScRsp(this);
		}

		// Token: 0x1700298D RID: 10637
		// (get) Token: 0x06009371 RID: 37745 RVA: 0x00187A2E File Offset: 0x00185C2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x1700298E RID: 10638
		// (get) Token: 0x06009372 RID: 37746 RVA: 0x00187A36 File Offset: 0x00185C36
		// (set) Token: 0x06009373 RID: 37747 RVA: 0x00187A3E File Offset: 0x00185C3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700298F RID: 10639
		// (get) Token: 0x06009374 RID: 37748 RVA: 0x00187A47 File Offset: 0x00185C47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TrialAvatarIdList
		{
			get
			{
				return this.trialAvatarIdList_;
			}
		}

		// Token: 0x06009375 RID: 37749 RVA: 0x00187A4F File Offset: 0x00185C4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PickRogueAvatarScRsp);
		}

		// Token: 0x06009376 RID: 37750 RVA: 0x00187A60 File Offset: 0x00185C60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PickRogueAvatarScRsp other)
		{
			return other != null && (other == this || (this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.Retcode == other.Retcode && this.trialAvatarIdList_.Equals(other.trialAvatarIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009377 RID: 37751 RVA: 0x00187AC4 File Offset: 0x00185CC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.trialAvatarIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009378 RID: 37752 RVA: 0x00187B1F File Offset: 0x00185D1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009379 RID: 37753 RVA: 0x00187B27 File Offset: 0x00185D27
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600937A RID: 37754 RVA: 0x00187B30 File Offset: 0x00185D30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.trialAvatarIdList_.WriteTo(ref output, PickRogueAvatarScRsp._repeated_trialAvatarIdList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			this.baseAvatarIdList_.WriteTo(ref output, PickRogueAvatarScRsp._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600937B RID: 37755 RVA: 0x00187B90 File Offset: 0x00185D90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.baseAvatarIdList_.CalculateSize(PickRogueAvatarScRsp._repeated_baseAvatarIdList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.trialAvatarIdList_.CalculateSize(PickRogueAvatarScRsp._repeated_trialAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600937C RID: 37756 RVA: 0x00187BF4 File Offset: 0x00185DF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PickRogueAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.trialAvatarIdList_.Add(other.trialAvatarIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600937D RID: 37757 RVA: 0x00187C52 File Offset: 0x00185E52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600937E RID: 37758 RVA: 0x00187C5C File Offset: 0x00185E5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 10U)
				{
					if (num == 8U || num == 10U)
					{
						this.trialAvatarIdList_.AddEntriesFrom(ref input, PickRogueAvatarScRsp._repeated_trialAvatarIdList_codec);
						continue;
					}
				}
				else
				{
					if (num == 32U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 40U || num == 42U)
					{
						this.baseAvatarIdList_.AddEntriesFrom(ref input, PickRogueAvatarScRsp._repeated_baseAvatarIdList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003841 RID: 14401
		private static readonly MessageParser<PickRogueAvatarScRsp> _parser = new MessageParser<PickRogueAvatarScRsp>(() => new PickRogueAvatarScRsp());

		// Token: 0x04003842 RID: 14402
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003843 RID: 14403
		public const int BaseAvatarIdListFieldNumber = 5;

		// Token: 0x04003844 RID: 14404
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04003845 RID: 14405
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04003846 RID: 14406
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04003847 RID: 14407
		private uint retcode_;

		// Token: 0x04003848 RID: 14408
		public const int TrialAvatarIdListFieldNumber = 1;

		// Token: 0x04003849 RID: 14409
		private static readonly FieldCodec<uint> _repeated_trialAvatarIdList_codec = FieldCodec.ForUInt32(10U);

		// Token: 0x0400384A RID: 14410
		private readonly RepeatedField<uint> trialAvatarIdList_ = new RepeatedField<uint>();
	}
}
